<template>
    <div class="user">
        <el-form :inline="true" >
          <el-form-item label="部门名">
            <el-input  placeholder="请输入部门名"></el-input>
          </el-form-item>
        </el-form>
        <div class="query">
              <el-button type="primary" @click="onSubmit">查询</el-button>
        </div>
        <el-table :data="categoryList" style="width: 100%" border stripe>
            <el-table-column type="index" :index="1">
            </el-table-column>
            <el-table-column prop="name" label="部门名" >
            </el-table-column>
            <el-table-column fixed="right" label="操作" >
                <template slot-scope="scope">
                    <el-button @click.native.prevent="deleteRow(scope.$index, tableData4)" type="primary" size="mini">
                        查看
                    </el-button>
                    <el-button @click.native.prevent="deleteRow(scope.$index, tableData4)" type="info" size="mini">
                        修改
                    </el-button>
                </template>
            </el-table-column>
        </el-table>

    </div>
</template>
<script>
// @ 是 /src 的别名
export default {
    name: 'UserIndex',
    props: {

    },
    data() {
        return {
            categoryList: [{
                id: '10001',
                name: '策划部',
            }]
        }
    },
    methods: {

    }
}
</script>
<style scoped lang="styl">
.userimg
    width 60px
    height 60px
    border-radius 30px
.query
    display flex
    justify-content flex-end
    margin 0 58px 20px 0 

</style>